package com.mx.service.impl;

import com.mx.mapper.TagMapper;
import com.mx.pojo.Tag;
import com.mx.service.TagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class TagServiceImpl implements TagService {

    @Autowired
    TagMapper tagMapper;

    @Override
    public List<Tag> findAll() {
        return tagMapper.findAll();
    }

    @Override
    public Tag findId(int id) {
        return tagMapper.findId(id);
    }

    @Override
    public int save(Tag tag) {
        return tagMapper.save(tag);
    }

    @Override
    public int delete(int id) {
        return tagMapper.delete(id);
    }
}
